package com.snail.study.controller;

import com.dtflys.forest.annotation.GetRequest;
import com.snail.study.service.HelloService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HelloController {

    @Resource
    private HelloService helloService;
    @GetRequest("/hello")
    public String helloWorld(){
        return helloService.helloWorld();
    }
}
